#ifndef LABEL_H
#define LABEL_H

#include <QLabel>
#include <QDebug>
#include <QMouseEvent>
#include <QWheelEvent>

class Label : public QLabel
{
        Q_OBJECT
      public:
        Label(QWidget *parent);
        // 鼠标按下
        void mousePressEvent(QMouseEvent *event);
        // 鼠标释放
        void mouseReleaseEvent(QMouseEvent *event);
        // 鼠标双击
        void mouseDoubleClickEvent(QMouseEvent *event);
        // 鼠标移动
        void mouseMoveEvent(QMouseEvent *event);
        // 鼠标滚轮按下
        void wheelEvent(QWheelEvent *event);
        // 滚轮滚动距离
        int total;
};

#endif  // LABEL_H
